package com.maochang.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maochang.mapper.PsInspectorDetailMapper;
import com.maochang.pojo.PsInspectorDetail;
import com.maochang.service.PsInspectorDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("PsInspectorDetailServiceImpl")
public class PsInspectorDetailServiceImpl  extends ServiceImpl<PsInspectorDetailMapper, PsInspectorDetail> implements PsInspectorDetailService {

     @Resource
     private  PsInspectorDetailMapper psInspectorDetailMapper;


     @Override
     public boolean xjMingXiAdd(PsInspectorDetail psInspectorDetail){
        //参数配置
        int row= psInspectorDetailMapper.insert(psInspectorDetail);
        System.out.println(row);
        boolean PsILZ=false;
        if(row>0){
            PsILZ=true;
        }
        return PsILZ;
    }
    @Override
    public List<PsInspectorDetail> xunJiYuanMingXiBIao(PsInspectorDetail psInspectorDetail) {
        QueryWrapper<PsInspectorDetail> wrapper= Wrappers.query();
        List<PsInspectorDetail> aa= psInspectorDetailMapper.selectList(wrapper);
        return aa;
    }
}
